package top.z.work.framework.common.constant;

/**
 * 数据状态
 */
public enum DataStatus {

    POSITIVE(1, "启用/成功"),
    NEGATIVE(0, "禁用/失败");

    private final Integer code;
    private final String  title;

    DataStatus(Integer code, String title) {
        this.code = code;
        this.title = title;
    }

    public Integer code() {
        return code;
    }

    public String title() {
        return title;
    }

}
